home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.2 KB | 83 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _TRANSLAT_
- #define _TRANSLAT_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl"
- #endif
-
- //=====================================================================================
- // Constants
- //=====================================================================================
-
- enum ODTranslateResultConsts {
- kODCannotTranslate,
- kODCanTranslate,
- kODNative
- };
-
- enum ODPlatformTypeSpaceConsts {
- kODPlatformFileType,
- kODPlatformDataType
- } ;
-
- //=====================================================================================
- // Classes defined in this interface
- //=====================================================================================
- interface ODTranslation;
-
- //=====================================================================================
- // Classes used by this interface
- //=====================================================================================
- interface ODTypeSet;
- interface ODStorageUnitView;
-
- //=====================================================================================
- // Class ODTranslation
- //=====================================================================================
-
- interface ODTranslation : ODObject
- {
- void InitTranslation();
-
- ODTranslateResult CanTranslate(in ODType fromType);
-
- ODTypeSet GetTranslationOf(in ODType fromType);
-
- ODTranslateResult TranslateView(in ODStorageUnitView fromView,
- in ODStorageUnitView toView);
-
- ODTranslateResult Translate(in ODPtr fromData,
- in ODULong fromDataSize,
- in ODType fromType,
- in ODType toType,
- out ODPtr toData,
- out ODULong toDataSize);
-
- ODType GetISOTypeFromPlatformType(in ODPlatformType platformType,
- in ODPlatformTypeSpace typeSpace);
-
- ODPlatformType GetPlatformTypeFromISOType(in ODType type);
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- Purge,
- somInit,
- somUninit;
- releaseorder:
- InitTranslation,
- CanTranslate,
- GetTranslationOf,
- TranslateView,
- Translate,
- GetISOTypeFromPlatformType,
- GetPlatformTypeFromISOType;
- };
- #endif
-
- };
-
- #endif // _TRANSLAT_
-